package net.scdx.hotel.dto;

import net.scdx.hotel.entity.User;

public class UserExecution {

    private boolean success; // result of execution

    private String msg; // failure message

    private User user; // successful return value

    public UserExecution() {
    }

    public UserExecution(boolean success, String msg, User user) {
        this.success = success;
        this.msg = msg;
        this.user = user;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
